#ifndef LOGININTERFACE_H
#define LOGININTERFACE_H

#include <QObject>
#include <QWidget>
#include <QPushButton>
#include <QLabel>
#include <QLineEdit>
#include <QDialog>
class logininterface: public QDialog
{
    Q_OBJECT

public:
    logininterface(QWidget * parent = 0);
    logininterface(QString label, QWidget * parent = 0);
    ~logininterface();

    QString getUserName();
    QString getPassWord();
    QString getReturnStr();

private slots:
    void onLoginButtonClicked();

private:
    void initLayout();
    QPushButton * loginButton;
    QLabel * userNameLabel;
    QLabel * passWordLabel;
    QLineEdit * userNameEdit;
    QLineEdit * passWordEdit;
    QString loginUser;
};

#endif // LOGININTERFACE_H
